<template>
  <div class="com-container">
    <div class="demo-image__preview">
      <el-image
        style="width: 600px; height: 600px"
        :src="url"
        :preview-src-list="srcList">
      </el-image>
    </div>
  </div>
</template>

<script>
import indexdata from '@/api/data/indexdata'
export default {
  name: 'WordCloudImg',
  data(){
    return{
      url:'',
      srcList:[]
    }
  },
  created () {
    indexdata.getNameWordCloudImg().then(res=>{
      this.url = res.data.url
      this.srcList.push(res.data.url)
    })
  },


}
</script>

<style scoped>
</style>
